package com.wenson.creational.factoryabstract;

/**
 * @author: luowangcheng
 * @data：2024/6/10 18:47
 * @description:
 */
public class Roach extends LowClassUnit{
    public Roach(int x, int y) {
        super(x, y);
    }

    @Override
    public void show() {
        System.out.println("蟑螂兵出现的坐标：[" + x + "," + y + "]");
    }

    @Override
    public void attack() {
        System.out.println("蟑螂用爪子挠，攻击力：" + attack);
    }
}
